tiny-printf: Correct the snprintf() implementation
authorSimon Glass <[email protected]>
Thu, 9 Jun 2016 02:55:15 +0000 (20:55 -0600)
committerTom Rini <[email protected]>
Thu, 9 Jun 2016 17:52:53 +0000 (13:52 -0400)
commit3191d8408053674c1b9bb79a82e3973add48830c
tree4ee4b34a53ec766e18389fc6d6439ba2690f156c
parent9c2f9b2da650907b928995350cc4e29480fb0f80
tiny-printf: Correct the snprintf() implementation

This current code passes the variable arguments list to sprintf(). This is
not correct. Fix it by calling _vprintf() directly.

This makes firefly-rk3288 boot again.

Fixes: abeb272 ("tiny-printf: Support snprintf()")
Reviewed-by: Stefan Roese <[email protected]>
Acked-by: Marek Vasut <[email protected]>
Signed-off-by: Simon Glass <[email protected]>
lib/tiny-printf.c